import axios from 'axios';

const BASE_URL = 'http://localhost:8080';

export function getHorizontalProjects(params) {
  return axios.get(`${BASE_URL}/horizontal-project/filter`, { params });
}

export function addHorizontalProject(data) {
  return axios.post(`${BASE_URL}/horizontal-project/add`, data);
}

export function updateHorizontalProject(data) {
  return axios.put(`${BASE_URL}/horizontal-project/update`, data);
}

export function deleteHorizontalProject(id) {
  return axios.delete(`${BASE_URL}/horizontal-project/delete/${id}`);
}

export function auditHorizontalProject(id, status, rejectReason) {
  return axios.post(`${BASE_URL}/horizontal-project/audit`, { id, status, rejectReason });
} 